//
//  HttpRequest.h
//  ActiveDeck
//
//  Created by Chiao-Wei Liu on 2011/2/8.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
@class GDataXMLElement;

@interface HttpRequest : NSObject {
    BOOL showAlert;
	NSError *httpError;
    int MessageID;
    
}

@property (readwrite) int MessageID;
@property (readwrite) BOOL showAlert;
@property (nonatomic, retain) NSError *httpError;

-(NSString*)XML_LongPostRequest:(GDataXMLElement*)authNode
                      urlString:(NSString *)urlString
                 channelID:(NSString *)channelID;

-(NSString *)XML_PostRequest:(NSString *)xmlMessage
				urlString:(NSString *)urlString;

-(NSData*)Image_PostRequest:(NSString *)xmlMessage
				   urlString:(NSString *)urlString;

-(NSData*)Video_PostRequest:(NSString *)xmlMessage
				   urlString:(NSString *)urlString;
-(void)GetResponseMessage:(NSString *)result;
-(NSString*)BuildXMLRequest:(GDataXMLElement*)authNode
                 channelID:(NSString*)channelID;

+(NSString*)GetSvcURL;

@end
